<?php
	
	include_once("class/controller/BaseController.class.php");
	include_once("class/vo/IndexVO.class.php");
	
	class IndexController extends BaseController{
		
		public static $_TABLE;
		
		var $VO;
		var $DAO = NULL;
		
		function __construct($INDEX = false){
			$this->VO = new IndexVO();
			$INDEX && self::$_TABLE = $INDEX;
			parent::__construct($this);
		}
		
		function startDAO(){
			if($this->DAO === NULL){
				include_once("class/dao/IndexDAO.class.php");
				$this->DAO = new IndexDAO($this->DB, $this->dbUSER, $this->dbPASS, $this->dbBASE, self::$_TABLE);
			}
		}
		
		function validate(){
			return true; //falo então
		}
		
	}
?>